package cn.tedu.restaurant.service;

import cn.tedu.restaurant.entity.Dishes;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JachinLin
 * @since 2020-10-05
 */
public interface DishesService extends IService<Dishes> {
    List<Dishes> getAllDishes();
    List<Dishes> getDishesByType(Integer type);
    List<Dishes> getDishesByChildType(Integer childType);
    List<Dishes> getDishesByName(String name);

    Integer updateTop(Integer uid,Integer topNum,Integer id);

    Dishes selectByDid(Integer id);
}
